package cn.zxcoder.entity.pay;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author zx
 * @since 2023-05-08
 */
@TableName("pay_cnf_info")
@ApiModel(value = "CnfInfo对象", description = "支付配置信息")
@Data
public class CnfInfo extends Mode implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("支付方式")
    private Integer mode;

    @ApiModelProperty("状态：正常or异常")
    private String status;

    @ApiModelProperty("修改时间")
    private Date editTime;

    @ApiModelProperty("修改用户")
    private String editUser;

    @ApiModelProperty("终端号")
    private String tnumber;

    @ApiModelProperty("配置序号")
    private Integer configId;

    @TableField(exist = false)
    @ApiModelProperty("支付方式名称")
    private String name;

    @TableField(exist = false)
    @ApiModelProperty("支付方式子名称")
    private String subName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getMode() {
        return mode;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public Date getEditTime() {
        return editTime;
    }

    public void setEditTime(Date editTime) {
        this.editTime = editTime;
    }
    public String getEditUser() {
        return editUser;
    }

    public void setEditUser(String editUser) {
        this.editUser = editUser;
    }
    public String getTnumber() {
        return tnumber;
    }

    public void setTnumber(String tnumber) {
        this.tnumber = tnumber;
    }

    @Override
    public String toString() {
        return "CnfInfo{" +
            "id=" + id +
            ", mode=" + mode +
            ", status=" + status +
            ", editTime=" + editTime +
            ", editUser=" + editUser +
            ", tnumber=" + tnumber +
        "}";
    }
}
